<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/back_page/head.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>babasport-list</title>
</head>
<body>
<div class="box-positon">
    <div class="rpos">当前位置: 用户管理 - 列表</div>
    <form class="ropt">
        <input class="add" type="button" value="添加" onclick="javascript:window.location.href='/control/buyer/toAdd.do'"/>
    </form>
    <div class="clear"></div>
</div>
<div class="body-box">
    <form action="/control/buyer/list.do" method="post" style="padding-top:5px;">
        用户名: <input type="text" value="${name}" name="name"/>
        <input type="submit" class="query" value="查询"/>
    </form>
    <form method="post" id="jvForm">
        <table cellspacing="1" cellpadding="0" width="100%" border="0" class="pn-ltable">
            <thead class="pn-lthead">
            <tr>
                <%--<th width="20"><input type="checkbox" onclick="Pn.checkbox('ids',this.checked)"/></th>--%>
                <th>用户名</th>
                <th>性别</th>
                <th>邮箱</th>
                <th>真实名字</th>
                <th>注册时间</th>
                <th>操作选项</th>
            </tr>
            </thead>
            <tbody class="pn-ltbody">
            <c:forEach items="${pagination.list }" var="entry">
                <tr bgcolor="#ffffff" onmouseover="this.bgColor='#eeeeee'" onmouseout="this.bgColor='#ffffff'">
                    <%--<td align="center"><input type="checkbox" name="ids" value="${entry.id }"/></td>--%>
                    <td align="center">${entry.username }</td>
                    <td align="center">
                        <c:if test="${entry.gender == 'MAN' }">男</c:if>
                        <c:if test="${entry.gender == 'WOMAN' }">女</c:if>
                        <c:if test="${entry.gender == 'SECRECY' }">保密</c:if>
                    </td>
                    <td align="center">${entry.email }</td>
                    <td align="center">${entry.realName }</td>
                    <td align="center"><fmt:formatDate value="${entry.registerTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td align="center">
                        <a href="#" class="pn-opt" onclick="window.location.href='/control/buyer/toEdit.do?id=${entry.id}'">修改</a> | <a href="#" onclick="if(!confirm('您确定删除吗？')) {return false;}" class="pn-opt">删除</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <div class="page pb15">
	<span class="r inb_a page_b">
		<c:forEach items="${pagination.pageView }" var="page">
            ${page }
        </c:forEach>
	</span>
        </div>
        <div style="margin-top:15px;"><input class="del-button" type="button" value="删除" onclick="optDelete();"/></div>
    </form>
</div>
</body>
</html>